package com.lago.io;

import java.io.InputStream;

/**
 * @author yuhe
 * @version 1.0
 * @date 2020/9/20 10:45
 */
public class Resources {

    //根据配置文件的路经，将配置文件加载成字节输入流，存储在内存中
    public static InputStream getResourceAsSteam(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
